/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.hiddendanger.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.common.domain.DataBean;
import com.koron.hiddendanger.domain.ChecklistEntryReference;
import com.koron.hiddendanger.domain.ItemCheckRecord;
import org.swan.bean.MessageBean;

import java.util.List;

public interface ChecklistEntryReferenceService {

    /**
     * 保存填写的检查记录
     * @param user
     * @param reference
     * @return
     */
    MessageBean<Integer> save(StaffBean user,ChecklistEntryReference reference);

    /**
     * 根据主键删除检查表记录
     * @param idList
     * @return
     */
    MessageBean<Integer> batchDelete(String checkRecordId,List<String> idList);

    /**
     * 根据主键查询检查记录
     * @param id
     * @return
     */
    MessageBean<ChecklistEntryReference> queryOne(String id);

    /**
     * 根据检查记录id查询使用的检查表列表
     * @param checkRecodId
     * @param start
     * @param rows
     * @return
     */
    MessageBean<DataBean<ChecklistEntryReference>> queryByCheckRecordId(String checkRecodId,Integer start,Integer rows);

    /**
     * 查询名称
     * @param bean
     */
    void getNames(ChecklistEntryReference bean);

    /**
     * 根据使用的检查表记录id查询具体的检查项填写结果列表
     * @param referenceId
     * @param start
     * @param rows
     * @return
     */
    MessageBean<DataBean<ItemCheckRecord>> queryItemsByReferenceId(String referenceId,Integer start,Integer rows);
}
